CentOS and OpenSSH [on hold]

Posted by Stephen on Server Fault See other posts from Server Fault or by Stephen
Published on 2013-06-27T20:22:35Z Indexed on 2013/06/27 22:22 UTC
Read the original article Hit count: 161

Filed under:
|

I've recently installed CentOS 6 on an old Dell PC. I'm trying to setup OpenSSH at the moment, I been following some tutorials (http://www.youtube.com/watch?v=QKafb0koJEg) on You Tube, while they have been very helpful I'm at the point where I need to ask some questions.

My goal here is to be able to access the server from my work computer and from my personal laptop (which will be on the same home network as the server).

I've installed OpenSSH with no issues.

So the first thing I was advised to do was port forwarding. So in the sshd_config file, I've changed Port 22 to Port xxxx (where xxxx is a obviously a four digit value).

I then restart the sshd service. I've also configured my router for forward port 22 onto xxxx.

Is there anything else I need to do?

I've generated the keys on my laptop, and I'm trying to copy them to the server as follows:

scp id_rsa.pub xxxxxxxx@localhost:.ssh/authorized_keys

but this command fails with the following error message:

ssh: connect to host localhost port 22: Connection refused lost connection

Any help appreciated.

Regards...

© Server Fault or respective owner

Related posts about centos

Related posts about ssh